package com.byit.domain;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author lxp
 */
@Data
@TableName("sys_message_notice")
public class SysMessageNotice extends Model<SysMessageNotice> {


    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 标题
     */

    @TableField("title")
    private String title;

    /**
     * 消息内容
     */
    @TableField("msg")
    private String msg;

    /**
     * 机构id
     */
    @TableField("company_id")
    private Long companyId;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 跟新时间
     */
    @TableField("update_time")
    private Date updateTime;

    /**
     * 是否删除:0未删除 1.已删除
     */
    @TableField("is_del")
    private Integer isDel;

    /**
     * 类型
     */
    @TableField("type")
    private Integer type;

    /**
     * 操作人id
     */
    @TableField("operation_id")
    private Long operationId;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysMessageNotice{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", msg='" + msg + '\'' +
                ", companyId=" + companyId +
                ", userId=" + userId +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", isDel=" + isDel +
                ", type=" + type +
                ", operationId=" + operationId +
                '}';
    }
}